﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Audio;

namespace _395_2d
{
    public abstract class Ship : Sprite
    {
        protected SpriteManager SM;
        protected List<MountedWeapon> MountedWeapons;
        protected List<double> LastShot;

        SoundEffect player_hit = SoundEffect.FromStream(TitleContainer.OpenStream(@"Content\player_hit.wav"));

        public int Health {
            get;
            set;
        }

        public abstract void shoot(GameTime gt);

        public abstract void Update(GameTime gt);

        public virtual void hit(Projectile p)
        {
            //player_hit.Play();
            Health -= p.Damage;
        }
    }
}
